package cn.miju.admin.biz.vo;

import cn.miju.admin.framework.model.BaseInfo;
import cn.miju.dict.constant.DictConstant;
import cn.miju.dict.validate.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <pre>
 * 修改商户状态
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-04-28 10:17
 */
@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
public class MerchantUpdateStatusInVO extends BaseInfo {
    /**
     * 商户ID
     */
    @ApiModelProperty(value = "商户ID", required = true)
    @NotNull(message = "传入商户ID不能为空")
    private Long id;
    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", required = true)
    @NotBlank(message = "传入状态不能为空")
    @Dict(key = DictConstant.MERCHANT_STATUS)
    private String status;
}
